﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Portal</title>
</head>
<body>
    <div class="easyui-layout" fit="true">
        <div data-options="title:'信息中心',region:'center',split:true,border:true," style="padding: 1px;">
            <div class="easyui-tabs" data-options="fit:true,border:true,tools:'#tab-tools1',">
                <div data-options="title:'全站新闻',closable:false," style="padding: 1px; overflow: hidden;">
                    <table id="datagrid11" class="easyui-datagrid" style="width: 100%; height: 100%;" data-options="iconCls:'icon-group',rownumbers:true,pagination:true,singleSelect:true,
                        method:'post',autoRowHeight:true,showHeader:true,toolbar:'#tbs',onLoadSuccess:function(){/*$(this).datagrid('enableDnd');*/},">
                        <thead>
                            <tr>
                                <th data-options="field:'ck',checkbox:true"></th>
                                <th data-options="field:'NodeTitle',halign:'center',">所属节点</th>
                                <th data-options="field:'Title',halign:'center',width:'60%',">标题</th>
                                <th data-options="field:'DateTimeCreate',halign:'center',formatter:window.xbase.FormatDate,">时间</th>
                                <th data-options="field:'FlagStatus',halign:'center',formatter:window.xbase.FormatFlagPass,">状态</th>
                            </tr>
                        </thead>
                    </table>
                 </div>
                <div data-options="title:'图片新闻',closable:false," style="padding: 1px; overflow: hidden;">
                    <table id="datagrid12" class="easyui-datagrid" style="width: 100%; height: 100%;" data-options="iconCls:'icon-group',rownumbers:true,pagination:true,singleSelect:true,
                        method:'post',autoRowHeight:true,showHeader:true,toolbar:'#tbs',onLoadSuccess:function(){/*$(this).datagrid('enableDnd');*/},">
                        <thead>
                            <tr>
                                <th data-options="field:'ck',checkbox:true"></th>
                                <th data-options="field:'NodeTitle',halign:'center',">所属节点</th>
                                <th data-options="field:'Image',halign:'center',align:'center',">图片</th>
                                <th data-options="field:'Title',halign:'center',width:'60%',">标题</th>
                                <th data-options="field:'DateTimeCreate',halign:'center',formatter:window.xbase.FormatDate,">时间</th>
                                <th data-options="field:'FlagStatus',halign:'center',formatter:window.xbase.FormatFlagPass,">状态</th>
                            </tr>
                        </thead>
                    </table>
                 </div>
                <div data-options="title:'视频新闻',closable:false," style="padding: 1px; overflow: hidden;">
                    <table id="datagrid13" class="easyui-datagrid" style="width: 100%; height: 100%;" data-options="iconCls:'icon-group',rownumbers:true,pagination:true,singleSelect:true,
                        method:'post',autoRowHeight:true,showHeader:true,toolbar:'#tbs',onLoadSuccess:function(){/*$(this).datagrid('enableDnd');*/},">
                        <thead>
                            <tr>
                                <th data-options="field:'ck',checkbox:true"></th>
                                <th data-options="field:'NodeTitle',halign:'center',">所属节点</th>
                                <th data-options="field:'Title',halign:'center',width:'60%',">标题</th>
                                <th data-options="field:'DateTimeCreate',halign:'center',formatter:window.xbase.FormatDate,">时间</th>
                                <th data-options="field:'FlagStatus',halign:'center',formatter:window.xbase.FormatFlagPass,">状态</th>
                            </tr>
                        </thead>
                    </table>
                 </div>
                <div data-options="title:'宽屏大图',closable:false," style="padding: 1px; overflow: hidden;">
                    <table id="datagrid14" class="easyui-datagrid" style="width: 100%; height: 100%;" data-options="iconCls:'icon-group',rownumbers:true,pagination:true,singleSelect:true,
                        method:'post',autoRowHeight:true,showHeader:true,toolbar:'#tbs',onLoadSuccess:function(){/*$(this).datagrid('enableDnd');*/},">
                        <thead>
                            <tr>
                                <th data-options="field:'ck',checkbox:true"></th>
                                <th data-options="field:'NodeTitle',halign:'center',">所属节点</th>
                                <th data-options="field:'Title',halign:'center',width:'60%',">标题</th>
                                <th data-options="field:'DateTimeCreate',halign:'center',formatter:window.xbase.FormatDate,">时间</th>
                                <th data-options="field:'FlagStatus',halign:'center',formatter:window.xbase.FormatFlagPass,">状态</th>
                            </tr>
                        </thead>
                    </table>
                 </div>
            </div>
        </div>
        <div data-options="title:'业务数据',region:'south',split:true,border:true," style="height: 220px; padding: 1px;">
            <div class="easyui-tabs" data-options="border:true,fit:true,tools:'#tab-tools2',">
                <div title="当前访问">
                    <table class="easyui-datagrid" rownumbers="true" striped="true" border="false" fit="true" fitcolumns="true" pagination="false" remotesort="false">
                        <thead>
                            <tr>
                                <th data-options="field:'itemid',sortable:true,width:'120px',">Item ID</th>
                                <th data-options="field:'productid',sortable:true,width:'240px',">Product</th>
                                <th data-options="field:'attr1',width:'240px',">Attribute</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>EST-1</td>
                                <td>FI-SW-01</td>
                                <td>36.50</td>
                                <td>Large</td>
                            </tr>
                            <tr>
                                <td>EST-10</td>
                                <td>K9-DL-01</td>
                                <td>18.50</td>
                                <td>Spotted Adult Female</td>
                            </tr>
                            <tr>
                                <td>EST-11</td>
                                <td>RP-SN-01</td>
                                <td>28.50</td>
                                <td>Venomless</td>
                            </tr>
                            <tr>
                                <td>EST-12</td>
                                <td>RP-SN-01</td>
                                <td>26.50</td>
                                <td>Rattleless</td>
                            </tr>
                            <tr>
                                <td>EST-13</td>
                                <td>RP-LI-02</td>
                                <td>35.50</td>
                                <td>Green Adult</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div title="当前留言" closable="false" iconcls="icon-money-us" style="padding: 10px">
                    <p>Tab content3.</p>
                </div>
            </div>
        </div>
    </div>
    <div id="tab-tools1" style="padding: 1px;">
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-refresh'" onclick="alert();"></a>
    </div>
    <div id="tab-tools2" style="padding: 1px;">
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-refresh'" onclick="alert();"></a>
    </div>
    <!--<div class="easyui-dialog" title="Dialog" iconcls="icon-save" style="width: 300px; height: 250px; left: 650px; top: 300px; padding: 10px"
        data-options="
			resizable:true,
			buttons:[{
				text:'Ok',
				iconCls:'icon-ok'
			},{
				text:'Cancel',
				iconCls:'icon-cancel'
			}]
		">
        <p>Dialog Content.</p>
    </div>-->
    <script type="text/javascript">
        $(function () {
            // $.ajax({
            //     type: 'GET',
            //     url: '/Ashx/Acc/Staff/NewsAdminInfoList.ashx?rnd=' + Math.random(),
            //     data: '',
            //     method: 'POST',
            //     success: function (result) {
            //         $('#datagrid11').datagrid('loadData', window.xbase.json(result));
            //         $('#datagrid12').datagrid('loadData', window.xbase.json(result));
            //     },
            // });
            $('#datagrid11').datagrid({ url: '/Ashx/Acc/Staff/NewsAdminInfoList.ashx?' + window.xbase.urlparas, onDblClickRow: function () { return false; }, onClickRow: function (index, field, value) { datagridClick('#datagrid11', index); } });
            $('#datagrid12').datagrid({ url: '/Ashx/Acc/Staff/NewsAdminInfoList.ashx?file=image&' + window.xbase.urlparas, onDblClickRow: function () { return false; }, onClickRow: function (index, field, value) { datagridClick('#datagrid12', index); } });
            $('#datagrid13').datagrid({ url: '/Ashx/Acc/Staff/NewsAdminInfoList.ashx?file=media&' + window.xbase.urlparas, onDblClickRow: function () { return false; }, onClickRow: function (index, field, value) { datagridClick('#datagrid13', index); } });
            $('#datagrid14').datagrid({ url: '/Ashx/Acc/Staff/NewsAdminInfoList.ashx?file=banner&' + window.xbase.urlparas, onDblClickRow: function () { return false; }, onClickRow: function (index, field, value) { datagridClick('#datagrid14', index); } });
            function datagridClick(dg, index) {
                this.focus();
                $('#Action').attr('value', 'ActView');
                $('#Object').attr('value', dg);
                $(dg).datagrid('clearSelections');   //清除所有
                $(dg).datagrid('selectRow', index);  //选择当前
                $('#dialog1').dialog({
                    title: '详细信息',
                    iconCls: 'icon-word',
                    method: 'get',
                    closed: false,
                    cache: false,
                    href: '/Html/Acc/Staff/NewsAdminInfoViewPortal.html?' + window.xbase.urlparas,
                    modal: true,
                    success: function (result) {
                        alert(result);
                    }
                });
            }
        });
    </script>
</body>
</html>
